package com.qdu.servlet;

import com.qdu.dao.UsersDao;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 用户通过审核
 *
 * @author Lenovo
 */
@WebServlet("/upcs")
public class userPassCheckServlet extends HttpServlet{

    //用户service类
    UsersDao userdao=new UsersDao();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        
        String userId=req.getParameter("userId");//获取用户id
        int rows=userdao.modifyUserStatus(userId);
        resp.getWriter().print(rows);
    }
    
}
